<?php
/*
 * Template Name: issewatus login
 */
echo '<link rel="stylesheet" type="text/css" href="' . get_stylesheet_directory_uri () . '/logincss/login-styles.css" />';

?>

<div class="login-form">
 
   <div class="login-branding">
		<h1 class="logo"><a/></h1>
		
	</div>
  
    <?php
				$args = array (
						'redirect' => home_url (),
						'id_username' => 'user',
						'id_password' => 'pass' 
				);
				?>  
    <?php wp_login_form( $args ); ?>  
    <?php
    if ( !is_user_logged_in() ) {
    	echo '<a href="/wp-login.php?action=register">Not registered?</a>';
    }
    
	$login = (isset ( $_GET ['login'] )) ? $_GET ['login'] : 0;
	
	if ($login === "failed") {
		echo '<p class="login-msg"><strong>ERROR:</strong> Invalid username and/or password.</p>';
	} elseif ($login === "empty") {
		echo '<p class="login-msg"><strong>ERROR:</strong> Username and/or Password is empty.</p>';
	} elseif ($login === "false") {
		echo '<p class="login-msg"><strong>ERROR:</strong> You are logged out.</p>';
	}
	?>
    </div>
